#include "TargetBL_Config.h"
#include "TargetBL_Interface.h"



U8 Flash_Key0 = 0;
U8 Flash_Key1 = 0;

/*
//-----------------------------------------------------------------------------
// TGT_Erase_Page
//-----------------------------------------------------------------------------
//
// Return Value:  None
// Parameters:    None
//
// Erases one page of flash.
//-----------------------------------------------------------------------------
void TGT_Erase_Page(U32 Addr)
{
    PSCTL |= 0x03;
    FLASH_Modify(Addr, 0x00);
}

//-----------------------------------------------------------------------------
// TGT_Write_Flash
//-----------------------------------------------------------------------------
//
// Return Value:  None
// Parameters:    None
//
// Writes 512 bytes of flash.
//-----------------------------------------------------------------------------
void TGT_Write_Flash(U8  *buf, U32 addr)
{
    U8  * ptr = buf;
    U16 count = TGT_FLASH_PAGE_SIZE;
    // Setup for flash operation
    while (count--)
    {
        PSCTL |= 0x01;
        FLASH_Modify(addr++, *ptr++);
    }
}
//-----------------------------------------------------------------------------
// End Of File
//-----------------------------------------------------------------------------
*/

